<!DOCTYPE html>
<html>
	<head>
		<title>二维码</title>
		<!-- script标签不能写作闭合标签,否则不生效 -->
		<script src="../ExternalLibrary/jquery.js"></script><!-- 引入jquery库 -->
		<script src="../ExternalLibrary/jquery.qrcode.js"></script><!-- 引入二维码库 -->
	</head>

	<body>
		<div id="qrcode"></div>
	</body>

	<script type="text/javascript">
		var init = function(){
			$('#qrcode').qrcode({
                render: "table", //也可以替换为canvas
                width: 200,
                height: 200,
                text: "www.baidu.com"
            })
		}()
	</script>
</html>